package org.fintool.common;

public class MathUtil {

	public static final  double getPercentChange(final double begin,final double end){

		double retPercent=0.0;

		retPercent=((end-begin)/begin)*100.0;





		return retPercent;



	}

	public static final  double getPortion(final double begin,final double end){

		double retPercent=0.0;

		retPercent=((begin)/end)*100.0;





		return retPercent;



	}


	public static void main(String[] args) {
		//System.out.println(getPercent(100, 110));
		System.out.println(getPortion(100, 110));

	}

}
